import BaseView from "../../Script/Base/BaseView";
import { EBundleType, EViewType } from "../../Script/Common/Enum";
import { IViewData } from "../../Script/Interface/IMessage";
import AppService from "../../Script/Service/AppService";

const { ccclass, property } = cc._decorator;

const VIEW_DATA: IViewData = {
    name: 'TipUI1',
    type: EViewType.Panel,
    bundle: EBundleType.Game,
    zIndex: 100,
};
@ccclass
export default class TipUI1 extends BaseView {

    @property({ type: cc.Label, tooltip: "描述" })
    private labDesc: cc.Label = null;

    protected onLoad() {
        super.onLoad();
        this.refreshUI();
    }

    private refreshUI() {
        this.labDesc.string = 'test';//`${this.prepareData.desc}`;
    }

    private onBtnClicked(event: cc.Event.EventTouch, data: string) {
        
    }
}
AppService.instance.registViewData(VIEW_DATA);